﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WL_Store.DAL;
using WL_Store.Model;

namespace WL_Store.BLL
{
   public  class OrderFormBLL
    {
        OrderFormDAL dal = new OrderFormDAL();

        /// <summary>
        /// 查询所有订单信息
        /// </summary>
        /// <returns></returns>
        public List<OrderFormModel> GetOrderForms(OrderFormSearchModel searchModel)
        {
            return dal.GetOrderForms(searchModel);
        }
        /// <summary>
        /// 更改商品发货信息 返回true：已发货；返回false：未发货 
        /// </summary>
        /// <param name="commodityID"></param>
        /// <returns></returns>
        public bool UpdateIsSendout(string orderID)
        {
            return dal.UpdateIsSendout(orderID);
        }

        /// <summary>
        /// 删除订单信息 返回true：删除成功；返回false：删除失败 
        /// </summary>
        /// <param name="orderID"></param>
        /// <returns></returns>
        public bool DeleteisDelete(string orderID)
        {
            return dal.DeleteisDelete(orderID);
        }

    }
}
